import serviceAxios from "@/http/index";


export const getUserInfo = (params) => {
    return serviceAxios({
        url: "/api/website/queryMenuWebsite",
        method: "post",
        params,
    });
};
export const login = (data) => {
    return serviceAxios({
        url: "/api/user/login",
        method: "post",
        data,
    });
};

export const getNavList = (params) => {
    return serviceAxios({
        url: "/addons/ldcms/api.v1/nav?pid=0",
        method: "get",
        params,
    });
};
export const getNavListThere = (params) => {
    return serviceAxios({
        url: "addons/ldcms/api.v1/navTree",
        method: "get",
        params,
    });
};
export const getBanner = (params) => {
    return serviceAxios({
        url: "addons/ldcms/api.v1/ad?name=banner",
        method: "get",
        params,
    });
};

export const getConfig = (params) => {
    return serviceAxios({
        url: "addons/ldcms/api.v1/config",
        method: "get",
        params,
    });
}
export const getLink = (params) => {
    return serviceAxios({
        url: "addons/ldcms/api.v1/links?name=link",
        method: "get",
        params,
    });
}
